Xbasic
a5_html_label Function
Syntax
C a5_html_label(value as a [,searchHighlights as c])
Arguments
- valueAny Type
Value to convert. Can be any type.
- searchHighlightsCharacter
A CSS class name followed by = and the pattern(s) to match for highlighting.
Returns
- resultCharacter
Returns the value converted to HTML.
Description
Convert any data type to html text, optional search highlighting feature.
Discussion
The a5_html_label function converts the value into HTML. It includes an optional parameter that can be used to add search highlighting to the generated HTML.
Example
? a5_html_label(now()) = "01/16/2012 03:41:30 27 pm" ? a5_html_label(1) = "1" ? a5_html_label("hello world","highlight=world") = hello <span class="highlight" A5HL="Y">world</span> ? a5_html_label("hello world","highlight=world"+crlf()+"hel") = <span class="highlight" A5HL="Y">hel</span>lo <span class="highlight" A5HL="Y">world</span>